package org.example.studentteacherassignmentsystem.repository;


import org.example.studentteacherassignmentsystem.model.Student;
import org.example.studentteacherassignmentsystem.model.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student, Long> {
    List<Student> findByTeacherIsNull();
    List<Student> findByTeacher(Teacher teacher);
}